package com.hospital.BaseActivity;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import com.umeng.analytics.MobclickAgent;

/**
 * Created by wangjun on 2015/6/1.
 */
public class BaseActivity extends Activity {
    protected Context mContext;
    protected   String mPageName = "";



    @Override
    public void onResume() {
        super.onResume();
        MobclickAgent.onPageStart(mPageName);
        MobclickAgent.onResume(mContext);
    }

    @Override
    public void onPause() {super.onPause();
       MobclickAgent.onPageEnd( mPageName );
        MobclickAgent.onPause(mContext);
         MobclickAgent.updateOnlineConfig(this);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
}
